// 腾讯地图key的负载均衡
const aks = [
    "FE6BZ-7NDKJ-WDHFL-F4MHV-Y565Q-GCFOA",
    "26PBZ-FQLW5-NNGIZ-IJ3V6-OERF7-B6BEP",
  ];
  
  const rand = (min = 0, max = 1) => (
    Math.round(Math.random() * (max - min) + min)
  )
  
  const akProxy = new Proxy(aks, {
    get(target, prop){
        if (prop === 'ak') {
            return target[rand(0, target.length - 1)]
        }
        return target[prop]
    }
  })
  export const mapKey = akProxy.ak;